package net.ningbo;

/**
 * @Author 宁铂
 * @Date 2021/7/7 14:52
 * @Version 1.0
 */
public class TestDog {
    public static void main(String[] args) {
        Dog dog1 = new Dog();
        Dog dog2 = new Dog();

        dog1.name = "spot";
        dog1.says = "Ruff!";

        dog2.name = "scruffy";
        dog2.says = "urf!";

        System.out.println(dog1.name+"···"+dog1.says+"叫");
        System.out.println(dog2.name+"···"+dog2.says+"叫");

        Dog dog3 = new Dog();

        System.out.println(dog3.equals(dog1));
    }
}
class Dog{
    String name;
    String says;
}

